//
//  dataPickerVC.m
//  Notification
//
//  Created by Apple on 2017/3/22.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import "dataPickerVC.h"

@interface dataPickerVC ()

@end

@implementation dataPickerVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"DataPickerVC";
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.dataPicker = [[UIDatePicker alloc]initWithFrame:self.view.frame];
#pragma mark-设置时区比如东8区
    self.dataPicker.timeZone = [NSTimeZone timeZoneWithName:@"GTM+8"];
    self.dataPicker.datePickerMode = UIDatePickerModeDate;
    [self.view addSubview:self.dataPicker];
#pragma mark-设置最大和最小时间
    NSDate*maxDate = [[NSDate alloc]initWithTimeIntervalSinceNow:10*24*60*60];
    self.dataPicker.maximumDate = maxDate;
    NSDate * mimDate = [NSDate date];
    self.dataPicker.minimumDate = mimDate;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
